import Vue from 'vue'
export const menu = {
  findByUserId: (params) => {
    return Vue.prototype.$get(`upms/menu/findByUserId/${params}`)
  },
  findByRoleId: (params) => {
    return Vue.prototype.$get(`upms/menu/findByRoleId/${params}`)
  },
  findMenuByRoleId: (params) => {
    return Vue.prototype.$get(`upms/menu/findMenuByRoleId/${params}`)
  },
  queryAll: (params) => {
    return Vue.prototype.$post('upms/menu/queryAll', params)
  },
  delete: (params) => {
    return Vue.prototype.$get(`upms/menu/delete/${params}`)
  },
  update: (params) => {
    return Vue.prototype.$post('upms/menu/update', params)
  },
  add: (params) => {
    return Vue.prototype.$post('upms/menu/add', params)
  },
  list: (params) => {
    return Vue.prototype.$post('upms/menu/list', params)
  }
}
